export interface foodsListParams {
  page: number;
  pageSize: number;
}

export interface foodsListData {
  id: number;
  companyId: number;
  name: string;
  unit: string;
  supplierId: number;
  wholePrice: string;
  sellPrice: string;
  purchasePrice: string;
  updateTime: string;
  supplierName: string;
}

export interface foodsListReturn {
  counts: number;
  list: foodsListData[];
  pageSize: number;
}

// 食材添加
export interface foodAddParams {
  id: number;
  name: string;
  unit: string;
  supplierId: number | undefined;
  updateTime?: string;
}

// 食材价格添加
export interface foodPriceAddParams {
  id: number;
  foodId?: number;
  wholePrice: string;
  sellPrice: string;
  purchasePrice: string;
  updateTime?: string;
}

export interface foodsPriceData {
  id: number;
  foodId: number;
  wholePrice: string;
  sellPrice: string;
  purchasePrice: string;
  updateTime: string;
  addAccountId: number;
  addAccountName: string;
}

export interface foodsPriceListReturn {
  counts: number;
  pageSize: number;
  list: foodsPriceData[];
}
